using System;
using System.Threading;
using System.Windows.Forms;
internal static class Progame
{
	[STAThread]
	private static void Main()
	{
		Application.ThreadException += new ThreadExceptionEventHandler(Progame.MainUIThreadExceptionHandler);
		AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Progame.MainUIUnhandledExceptionHandler);
		Application.EnableVisualStyles();
		Application.SetCompatibleTextRenderingDefault(false);
		Application.Run(new CmsForm());
	}
	public static void MainUIThreadExceptionHandler(object sender, ThreadExceptionEventArgs e)
	{
		MessageBox.Show(e.Exception.Message, "线程异常:", MessageBoxButtons.OK, MessageBoxIcon.Hand);
	}
	public static void MainUIUnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
	{
		MessageBox.Show(e.ExceptionObject.ToString(), "未处理的异常:", MessageBoxButtons.OK, MessageBoxIcon.Hand);
	}
}
